import { ColumnsType } from 'ant-design-vue/lib/table'

export const columnsList: ColumnsType = [
  {
    title: '表单名称',
    dataIndex: 'formName',
    minWidth: 110,
    key: 'formName'
  },
  {
    title: '表单类型',
    dataIndex: 'formType',
    minWidth: 100,
    key: 'formType'
  },
  {
    title: '创建人',
    dataIndex: 'createUserName',
    minWidth: 120,
    key: 'createUserName'
  },
  {
    title: '创建时间',
    dataIndex: 'createTime',
    minWidth: 170,
    key: 'createTime'
  },
  {
    title: '最后编辑人',
    dataIndex: 'lastEditUserName',
    minWidth: 110,
    key: 'lastEditUserName'
  },
  {
    title: '最后编辑时间',
    dataIndex: 'lastEditTime',
    minWidth: 170,
    key: 'lastEditTime'
  },
  {
    title: '操作',
    dataIndex: 'edit',
    key: 'edit',
    fixed: 'right',
    minWidth: 280,
    align: 'left'
  }
]

export interface Option {
  label: string
  value: number | string
}
export const formTypeOptions: Array<Option> = [
  {
    label: '自定义表单',
    value: 1
  },
  {
    label: '意向申请',
    value: 2
  },
  {
    label: '立项申请',
    value: 3
  },
  {
    label: '启动会预约',
    value: 4
  },
  {
    label: '启动会召开',
    value: 5
  },
  {
    label: '结题申请',
    value: 6
  },
  {
    label: '项目结题',
    value: 7
  },
  {
    label: '主合同',
    value: 8
  },
  {
    label: 'CRC协议',
    value: 9
  },
  {
    label: '补充协议',
    value: 10
  },
  {
    label: '其它协议',
    value: 11
  }
]
